home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1996 February / macformat-034.iso / mac / Shareware City / Developers / simple-sockets-11-c / Simple Sockets 1.1 ƒ / MacTCP Headers ƒ / About MacTCP Headers…
Encoding:
Text File  |  1995-11-28  |  2.3 KB  |  57 lines  |  [TEXT/R*ch]

  1. About MacTCP Headers
  2. ~~~~~~~~~~~~~~~~~~~~
  3.  
  4.  
  5. You need special headers to compile MacTCP software. Depending on your compiler
  6. you will need to use the files I provide for Universal Headers or Pre-Universal
  7. Headers. You will not need both. 
  8.  
  9.  
  10. Universal Headers
  11. ~~~~~~~~~~~~~~~~~
  12. Simple Sockets works with the Universal Headers. The Universal Headers are used 
  13. for compiling software for both PowerMacs and 68k macs. All modern Macintosh 
  14. compilers (Metrowerks, newer MPW, Symantec C/C++ 8.0) use the Universal Headers.
  15.  
  16. The Universal Headers shipped with Metrowerks Codewarrior include the standard
  17. MacTCP header files (MacTCPCommonTypes.h, MiscIPPB.h, etc) as well as a new 
  18. file (MacTCP.h). As such, no additional headers are required to compile and use
  19. Simple Sockets with the Universal Headers.
  20.  
  21. At one point in time, there were some problems with the dnr.c file shipped with
  22. the Universal Headers. Essentially, the dnr.c file wouldn't work with 68k macs.
  23. The reason had to do with some errors in the dnr.c file itself. I have 
  24. included a copy of the dnr.c file that came with Newswatcher's source code. If
  25. you have problems doing DNS Lookups on 68k macs, use this dnr.c file instead of
  26. the one provided in your Universal Headers.
  27.  
  28.  
  29. Pre-Universal Headers
  30. ~~~~~~~~~~~~~~~~~~~~~
  31. Older C compilers (Symantec 7.0 and less (including THINK C), older MPW) predate
  32. the new Universal Headers.  I have a copy of the MacTCP headers provided with
  33. version 1.1.1 of the MacTCP driver, and I have made them available in the past.
  34.  
  35. However, I tried really hard to get Simple Sockets to compile with Symantec 
  36. C/C++ 7.0 and these headers and I failed miserably. I know these used to work 
  37. with THINK C 5.0, and so I am including them incase someone finds them useful.
  38.  
  39. You can try downloading current MacTCP information from Apple. I know there is
  40. some useful information on ftp.info.apple.com. Perhaps they have some MacTCP 
  41. headers that will work with Symantec C/C++ 7.0?
  42.  
  43.  
  44. What about converting my source code?
  45. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  46. Older versions of Simple Sockets required you to make changes to the iplow.c file
  47. in order to compile the software.  Now using some #ifdefs, Simple Sockets should
  48. be able to figure that out automatically.
  49.  
  50. In the process of adding these #ifdefs, I also removed some memory leaks caused
  51. by orphaning UPPs.
  52.  
  53.  
  54. Michael Trent
  55. mtrent@msn.fullfeed.com
  56. 11/27/95
  57.